prepare("delete from invent_temporal where id = $id") ; if($sql->execute()) { header("location: invent.php") ; } ?>